package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetMessageMapper;
import com.ruoyi.system.domain.HatchetMessage;
import com.ruoyi.system.service.IHatchetMessageService;
import com.ruoyi.common.support.Convert;

/**
 * 消息列 服务层实现
 * 
 * @author ruoyi
 * @date 2019-03-27
 */
@Service
public class HatchetMessageServiceImpl implements IHatchetMessageService 
{
	@Autowired
	private HatchetMessageMapper hatchetMessageMapper;

	/**
     * 查询消息列信息
     * 
     * @param id 消息列ID
     * @return 消息列信息
     */
    @Override
	public HatchetMessage selectHatchetMessageById(String id)
	{
	    return hatchetMessageMapper.selectHatchetMessageById(id);
	}
	
	/**
     * 查询消息列列表
     * 
     * @param hatchetMessage 消息列信息
     * @return 消息列集合
     */
	@Override
	public List<HatchetMessage> selectHatchetMessageList(HatchetMessage hatchetMessage)
	{
	    return hatchetMessageMapper.selectHatchetMessageList(hatchetMessage);
	}
	
    /**
     * 新增消息列
     * 
     * @param hatchetMessage 消息列信息
     * @return 结果
     */
	@Override
	public int insertHatchetMessage(HatchetMessage hatchetMessage)
	{
	    return hatchetMessageMapper.insertHatchetMessage(hatchetMessage);
	}
	
	/**
     * 修改消息列
     * 
     * @param hatchetMessage 消息列信息
     * @return 结果
     */
	@Override
	public int updateHatchetMessage(HatchetMessage hatchetMessage)
	{
	    return hatchetMessageMapper.updateHatchetMessage(hatchetMessage);
	}

	/**
     * 删除消息列对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetMessageByIds(String ids)
	{
		return hatchetMessageMapper.deleteHatchetMessageByIds(Convert.toStrArray(ids));
	}
	
}
